package com.iplay.实战java高并发程序设计.chapter6.c63;

import java.util.Arrays;
import java.util.function.IntConsumer;

/**
 * @author dangwu
 * @since 2021/11/10 4:28 下午
 */
public class HelloFunction {
    static  int[] arr = {1,2,3,4,5,6,7,8,9};

    public static void main(String[] args) {
        Arrays.stream(arr).forEach(System.out::println);

        Arrays.stream(arr).forEach(new IntConsumer() {
            @Override
            public void accept(int value) {
                System.out.println(value);
            }
        });
    }
}
